<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>moment.js</title>
    <script src="moment.min.js"></script>
</head>
<body>
    
</body>
</html>
<script>
    //优秀的时间处理插件
    console.log(moment().format("YYYY-MM-DD HH:mm:ss"));
    //设置时间
    console.log(moment("2020-02-18 09:22:55").format("YYYY-MM-DD HH:mm:ss"));
    //十天后的日期
    console.log(moment().add(10,"days").format("YYYY-MM-DD HH:mm:ss"));
</script>